package com.mobiporter.adias.tests;

import org.junit.Assert;
import org.junit.Test;

import com.mobiporter.adias.tags.utils.TagBuilder;

public class TagBuilderTest 
{
	@Test
	public void testHTMLTagBuilding()
	{
		TagBuilder builder = TagBuilder.newInstance("a");
		builder.addAttribute("href", "www.google.com");
		builder.addAttribute("id", "b" );
		builder.addAttribute("name", "c");
		String toBeTested = builder.toString() ;
		Assert.assertNotNull(toBeTested);
		Assert.assertTrue(toBeTested.contains("href=\"www.google.com\""));
		Assert.assertTrue(toBeTested.contains("id=\"b\"" ));
		Assert.assertTrue(toBeTested.contains("name=\"c\""));
	}
}
